<?php

namespace LJS\Controller;

/**
 * ProductController 类
 *
 * @since VER:1.0; DATE:2016-6-13; AUTHOR:SoChishun; EMAIL:14507247@qq.com; DESC:Added.
 */
class ProductController extends AppbaseController {

    function product_list($cid = 0) {
        $where = array('status' => 1);
        if ($cid) {
            $where['category_id'] = $cid;
        }
        $this->assign('main_where', $where);
        $this->display();
    }

    function product_detail($id=0) {
        $this->assign('id',$id);
        $this->display();
    }

}
